Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat) add support for OData transform #427

Merged
merged 2 commits into from
May 16, 2022
Merged

(feat) add support for OData transform #427

merged 2 commits into from
May 16, 2022

Conversation

dselman
Copy link
Contributor

@dselman dselman commented May 13, 2022

Signed-off-by: Dan Selman [email protected]

Closes #422

Adds a concerto-tools visitor to transform Concerto to OData v4.0.1.

Changes

  • Added ODataVisitor
  • Added new OData target to CLI

Flags

Screenshots or Video

Related Issues

  • Issue #
  • Pull Request #

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to master from fork:branchname

@dselman dselman requested review from jeromesimeon and sstone1 May 13, 2022 14:53
@dselman dselman marked this pull request as ready for review May 16, 2022 12:28
@dselman dselman requested a review from mttrbrts May 16, 2022 12:28
@@ -137,7 +137,7 @@
"check-coverage": true,
"statements": 98,
"branches": 97,
"functions": 98,
"functions": 97,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈


/**
* Handle Keys (identifiers).
* In OData a type can only specify a Key if not already specified by a super-type.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we have the same constraint in Concerto?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

const Decorator = require('@accordproject/concerto-core').Decorator;
const FileWriter = require('@accordproject/concerto-util').FileWriter;

describe('ODataVisitor', function () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder how easy it would be to test the validity of the output with an OData parser? Or validate the output against sample data for example?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been using a little CSharp app for testing - I've not found anything in JS.

@dselman dselman merged commit 7ebf036 into master May 16, 2022
@dselman dselman deleted the ds-odata branch May 16, 2022 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CodeGen support for OData
3 participants